package com.runshu.newsmartark.mvp.model;


import com.runshu.newsmartark.common.ConstantUrl;
import com.runshu.newsmartark.entity.PhysicaInfoEntity;
import com.runshu.newsmartark.mvp.contract.PhysicaInfoContract;
import com.runshu.newsmartark.network.netbean.HttpRequestParamsBuilder;
import com.runshu.newsmartark.network.netbean.ResponseBean;
import com.runshu.newsmartark.network.netinterface.BaseCallBack;

/**
 * Demo class
 *
 * @author yu
 * @date 2020/8/24
 * @decs：
 */

public class PhysicaInfoModel extends BaseModel implements PhysicaInfoContract.Model {
    @Override
    public void getPhyInfo(String id, BaseCallBack baseCallBack) {

        HttpRequestParamsBuilder builder = new HttpRequestParamsBuilder();
        builder.putParams("id", id);
        super.initDataFromServer(ConstantUrl.GET_DELIVE_INFO, builder.build(), PhysicaInfoEntity.class, ResponseBean.RES_DATATYPE_BEAN, baseCallBack);


    }
}